home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 46 / Amiga Format CD46 (1999-10-20)(Future Publishing)(GB)[!][issue 1999-12].iso / -in_the_mag- / reader_requests / scilab / man / man-part1 / cat1 / eye.1 < prev    next >
Text File  |  1999-09-16  |  825b  |  67 lines

  1.  
  2.  
  3.  
  4. eye(1)                         Scilab Function                         eye(1)
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11. NAME
  12.   eye - identity matrix
  13.  
  14. CALLING SEQUENCE
  15.   [X]=eye(m,n)
  16.   [X]=eye(A)
  17.  
  18. PARAMETERS
  19.  
  20.   A,X       : matrices or syslin lists
  21.  
  22.   m,n       : integers
  23.  
  24. DESCRIPTION
  25.   according to its arguments defines an mxn matrix with 1 along the main
  26.   diagonal or an identity matrix of the same dimension as A .
  27.  
  28.   Caution: eye(10) is interpreted as eye(A) with A=10 i.e. 1.  (It is NOT a
  29.   ten by ten identity matrix!).
  30.  
  31.   If A is a linear system represented by a syslin list, eye(A) returns an eye
  32.   matrix of appropriate dimension: (number of outputs x number of inputs).
  33.  
  34. EXAMPLES
  35.   eye(2,3)
  36.   A=rand(2,3);eye(A)
  37.   s=poly(0,'s');A=[s,1;s,s+1];eye(A)
  38.   A=[1/s,1;s,2];eye(A);
  39.   A=ssrand(2,2,3);eye(A)
  40.  
  41. SEE ALSO
  42.   ones, zeros
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.